<?php 
	$this->title = 'Page dacceuil';
	$this->headTitle($this->title);
	list($key,$item) =each($this->paginator) ;

?>
	<?php if((!isset($item['idreponseparticipant']) || empty($item['idreponseparticipant'])) && empty($item['idparticipation'])):?>
			 
				<a href="<?php echo $this->url(array("action"=>"inscriptionsondage","controller"=>"Monsondage","module"=>"sondage","id"=>$item['idsondage']));?>"><img src="<?php echo $this->baseUrl();?>/resources/images/startgame.png" border="0"/></a>
			
		<?php elseif((!isset($item['idreponseparticipant']) || empty($item['idreponseparticipant'])) && !empty($item['idparticipation'])):?>
			
				<a href="<?php echo $this->url(array("action"=>"repondre","controller"=>"Monsondage","module"=>"sondage","id"=>$item['idsondage']));?>"><img src="<?php echo $this->baseUrl();?>/resources/images/startgame.png"  border="0"/></a>
			
		<?php else:?>	
			<br/><br/><br/><br/><br/><br/><br/><br/>
			
			<?php if(isset($item['idreponseparticipant'])):?>
			<p>END OF COMPETITION</p>
			  <img src="<?php echo $this->BaseUrl()?>/resources/images/score.png"><h1>Your Score IS : <h1><?php echo $item['scorefinal']; ?>
			  <br/><br/>
			  <p>THANK YOU FOR YOUR PARTICIPATION</p>
			  <br/><br/><br/><br/>
			  <p>RESULTS OF THE COMPETITION WILL BE ANNOUNCED BY THE 8 JANUARY 2013</p>
			  <?php endif;?>
			
		<?php endif;?>
		